home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950929-19951130 / 000262_news@columbia.edu_Tue Oct 31 04:50:22 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05617
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 1 Nov 1995 10:08:52 -0500
  3. Received: by apakabar.cc.columbia.edu id AA27614
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 1 Nov 1995 10:08:50 -0500
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!news.uoregon.edu!news.corpcomm.net!news3.net99.net!news.cais.net!simtel!news.sprintlink.net!vodka.intele.net!usenet
  6. From: gerry@blue.intele.net (Gerry Jensen)
  7. Newsgroups: comp.protocols.kermit.misc
  8. Subject: how to assign output of command to variable
  9. Date: 31 Oct 1995 04:50:22 GMT
  10. Organization: Opti-Med International
  11. Lines: 18
  12. Message-Id: <4749uf$cr4@vodka.intele.net>
  13. Nntp-Posting-Host: green.intele.net
  14. Mime-Version: 1.0
  15. Content-Type: Text/Plain; charset=US-ASCII
  16. X-Newsreader: WinVN 0.99.6
  17. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  18.  
  19. I am trying to write a Kermit script file for ckermit on a Unix system. 
  20. I wish to assign the output from a Unix command to a variable similar 
  21. to the following sh-style command:
  22.  
  23.    SomeVar=`ls`
  24.  
  25. Is it possible to do something like this in a Kermit script? Something 
  26. like:
  27.   
  28.    define \%a run ls ; (i know this doesn't work)
  29.  
  30. i.e. assign the output from the ls command to the variable \%a ?
  31.  
  32. Thanks,
  33.  
  34. Gerry
  35. gerry@blue.intele.net
  36.